package com.alibaba.algo.cooperation.feign.vo.res;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName: ResourceResVO
 * @Description:
 * @Author: wugongzi
 * @Date: 2022/1/4 17:56
 * @Version: 1.0
 */
@Data
@ApiModel("菜单响应VO")
public class ResourceResVO {

    @ApiModelProperty("资源id")
    private Long resourceId;

    @ApiModelProperty("上级ID")
    private Long parentId;

    @ApiModelProperty("资源编码")
    private String resourceCode;

    @ApiModelProperty("资源名称")
    private String resourceName;

    @ApiModelProperty("资源路径")
    private String path;

    @ApiModelProperty("序号")
    private Long sort;

    @ApiModelProperty("子菜单")
    private Boolean hasChild;

    @ApiModelProperty("是否是外部链接")
    private Boolean isLink;

    private List<ResourceResVO> childrenResource;

    private List<ActionResVO> action;
}
